package com.qiaofang.applet.service.other.service;

import com.qiaofang.applet.common.base.BaseService;
import com.qiaofang.applet.service.other.domain.SynchronousData;
import com.qiaofang.applet.service.other.service.dto.CountFirstPullDto;
import com.qiaofang.applet.service.other.service.dto.CountSynDataDto;

/**
 * @Author: youqing.yang
 * @Create: 2020/11/09 14:43
 * @Description:
 **/
public interface SynchronousDataService extends BaseService<SynchronousData, String> {

    void updateSynData(SynchronousData synchronousData);

    /**
     * 删除一礼拜前的数据
     * @param corporationCode
     * @param companyUuid
     */
    void deleteDataToWeek(String corporationCode, String companyUuid);

    /**
     * 统计昨天更新成功的数量
     * @param countSynDataDto
     * @return
     */
    long countInsertOrUpdate(CountSynDataDto countSynDataDto);

    /**
     * 统计更新字段 修改每条记录
     * @param countSynDataDto
     */
    void refreshSynCount(CountSynDataDto countSynDataDto);

    /**
     * 统计每天第一天拉取数据的v10拉去量
     * @param countFirstPullDto
     */
    void countFirstPullNum(CountFirstPullDto countFirstPullDto);
}
